package com.hui.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: ymh
 * @date: 2024/12/2 21:58
 * @description:板块领域对象
 */
@ApiModel(description = ":板块领域对象")
@Data
public class StockBlockDomain {
    /**
     * 公司数量
     */

    @ApiModelProperty(value = "公司数量", position = 1)
    private int companyNum;
    /**
     * 交易量
     */
    @ApiModelProperty(value = "交易量", position = 2)
    private Long tradeAmt;
    /**
     * 板块编码(标签)
     */
    @ApiModelProperty(value = "板块编码(标签)", position = 3)
    private String code;
    /**
     * 平均价格
     */
    @ApiModelProperty(value = "平均价格", position = 4)
    private BigDecimal avgPrice;
    /**
     * 板块名称
     */
    @ApiModelProperty(value = "板块名称", position = 5)
    private String name;
    /**
     * 当前日期
     */
    @ApiModelProperty(value = "当前日期", position = 6)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date curDate;
    /**
     * 交易总金额
     */
    @ApiModelProperty(value = "交易总金额", position = 7)
    private BigDecimal tradeVol;
    /**
     * 涨跌值
     */
    @ApiModelProperty(value = "涨跌值", position = 8)
    private BigDecimal updownRate;
}
